//
//  main.m
//  iCodeMacRun
//
//  Created by Andrew Barry on 17/03/09.
//  Copyright Barry Computer Services 2009. All rights reserved.
//

#ifdef MACOSX
#import <Cocoa/Cocoa.h>
#endif

#import "mersenneTwister.h"

#ifdef MACOSX
NSDictionary *gInitBreakpoints;
#endif

int main(int argc, char *argv[])
{
	srand(time(0));
	mt_init();
#ifdef WIN32
	runMain();
#else	
#ifdef CONSOLE
	NSAutoreleasePool *pool = [NSAutoreleasePool new];
	runMain();
	[pool release];
#else
    return NSApplicationMain(argc,  (const char **) argv);
#endif
#endif
}
